#!/usr/bin/python
# -*- coding: utf-8 -*-

import _mysql
import sys
try:
    con = _mysql.connect('localhost', 'root', 'ayaxyz1425gg', 'python')
        
    con.query("SELECT * FROM entries")
    result = con.use_result()
    
    result_set = result.fetch_row()
    print result_set[0][0]
    print result_set[0][1]
    print result_set[0][2]

    
except _mysql.Error, e:
  
    print "Error %d: %s" % (e.args[0], e.args[1])
    sys.exit(1)

finally:
    
    if con:
        con.close()